<div class="ibox-content">
    <form class="form-horizontal" method="post" action="{:url('TenUser/userDept')}">
        <input type="hidden" name="id" value="{$param.id|default='0'}">
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('选择员工')}</label>
            <div class="col-sm-10">
                <input name="username" class="form-control" type="text" placeholder="{:lang('账号')}" value="{$username|default=''}"  readonly/>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">{:lang('部门结构')}</label>
            <div class="col-sm-10">
                <div class="menu-tree-checkbox">
                {$deptTreeCheckboxView|default=''}
                </div>
                <span class="help-block m-b-none"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                {include file="layout/save_btn"}
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-8">
                <p class="text-danger">{:lang('设置员工部门时会覆盖重置员工之前的部门设置')}。</p>
                <p>{:lang('当选择一个员工时')}，{:lang('可以看到该员工所在的部门')}。</p>
                <p>{:lang('如果选择多个员工')}，{:lang('不会显示该所选择员工所在的部门')}。</p>
            </div>
        </div>
    </form>
</div>